PKGNAME=$(node -e "console.log(require('./package.json').name)" | sed 's/@//g')
cd docker \
	&& cp ../package.json . \
	&& DOCKER_BUILDKIT=1 docker build . -t 200-registry.intra.jiasule.com/$PKGNAME:$VERSION --build-arg VERSION=$VERSION --build-arg NPM_REGISTRY=10.255.8.129:4873 --build-arg NPM_TOKEN=$NPM_TOKEN && docker push 200-registry.intra.jiasule.com/$PKGNAME:$VERSION \
	&& docker push 200-registry.intra.jiasule.com/$PKGNAME:$VERSION \
  	&& docker rmi 200-registry.intra.jiasule.com/$PKGNAME:$VERSION \
	&& cd ..
